package com.umeox.watch.calendar.base;

import android.app.Application;
import android.content.Context;

import com.umeox.watch.calendar.R;

import uk.co.chrisjenx.calligraphy.CalligraphyConfig;

public class BaseApp extends Application {
    public static Context appContext;

    @Override
    protected void attachBaseContext(Context base) {
        super.attachBaseContext(base);
        appContext = this;
    }

    @Override
    public void onCreate() {
        super.onCreate();
        CalligraphyConfig.initDefault(new CalligraphyConfig.Builder()
                .setDefaultFontPath("fonts/Gilroy-Regular.ttf")
                .setFontAttrId(R.attr.fontPath)
                .build()
        );
    }
}